import book.BookList;
import user.CommentUser;
import user.Manager;
import user.User;

public class Main {
    public static void main(String[] args) {
        User user = new User();
        int ret = user.choose();
        if(ret == 1){
            user = new Manager();
        }else{
            user = new CommentUser();
        }

        BookList bookList = new BookList();
        ret = user.menu();

        //进行操作
        while(ret != 0){
            user.operate(ret,bookList);
            ret = user.menu();
        }
    }
}
